package com.cssl.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 账户流水表
 *
 * @TableName dts_account_trace
 */

public class DtsAccountTrace implements Serializable {
    /**
     *
     */

    private Integer id;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 扩展字段
     * 用户名表用户名
     */
    private String nickname;

    /**
     * 操作流水
     */
    private String traceSn;

    /**
     * 用户表的用户ID
     */
    private Integer userId;

    /**
     * 操作类型 0:系统结算 1:用户提现
     */
    private Integer type;

    /**
     * 操作金额
     */
    private BigDecimal amount;

    /**
     * 总申请金额
     */
    private BigDecimal totalAmount;

    /**
     * 申请时间
     */
    private Date addTime;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 短信提取码
     */
    private String smsCode;

    /**
     * 审批状态
     */
    private Integer status;

    /**
     * 消息内容
     */
    private String traceMsg;

    /**
     * 审批时间
     */
    private Date updateTime;


    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 操作流水
     */
    public String getTraceSn() {
        return traceSn;
    }

    /**
     * 操作流水
     */
    public void setTraceSn(String traceSn) {
        this.traceSn = traceSn;
    }

    /**
     * 用户表的用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 用户表的用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 操作类型 0:系统结算 1:用户提现
     */
    public Integer getType() {
        return type;
    }

    /**
     * 操作类型 0:系统结算 1:用户提现
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 操作金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 操作金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 总申请金额
     */
    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    /**
     * 总申请金额
     */
    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 申请时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * 申请时间
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * 手机号
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 短信提取码
     */
    public String getSmsCode() {
        return smsCode;
    }

    /**
     * 短信提取码
     */
    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    /**
     * 审批状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 审批状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 消息内容
     */
    public String getTraceMsg() {
        return traceMsg;
    }

    /**
     * 消息内容
     */
    public void setTraceMsg(String traceMsg) {
        this.traceMsg = traceMsg;
    }

    /**
     * 审批时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 审批时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DtsAccountTrace other = (DtsAccountTrace) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getTraceSn() == null ? other.getTraceSn() == null : this.getTraceSn().equals(other.getTraceSn()))
                && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
                && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
                && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
                && (this.getTotalAmount() == null ? other.getTotalAmount() == null : this.getTotalAmount().equals(other.getTotalAmount()))
                && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
                && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
                && (this.getSmsCode() == null ? other.getSmsCode() == null : this.getSmsCode().equals(other.getSmsCode()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getTraceMsg() == null ? other.getTraceMsg() == null : this.getTraceMsg().equals(other.getTraceMsg()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTraceSn() == null) ? 0 : getTraceSn().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getTotalAmount() == null) ? 0 : getTotalAmount().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getSmsCode() == null) ? 0 : getSmsCode().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTraceMsg() == null) ? 0 : getTraceMsg().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", traceSn=").append(traceSn);
        sb.append(", userId=").append(userId);
        sb.append(", type=").append(type);
        sb.append(", amount=").append(amount);
        sb.append(", totalAmount=").append(totalAmount);
        sb.append(", addTime=").append(addTime);
        sb.append(", mobile=").append(mobile);
        sb.append(", smsCode=").append(smsCode);
        sb.append(", status=").append(status);
        sb.append(", traceMsg=").append(traceMsg);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}